package admin

import "object/go_cms/models"

type AuthAdminController struct {
	BaseAdminController
	models models.AuthModels
}

// 当前账户的权限列表
// @router /admin/auth/getauth [get,post]
func (a *AuthAdminController) GetAuths() {
	aid := a.GetSession("aid").(int64)
	a.Res.Data, _ = a.models.GetAuth(aid)
	a.Res.Code = 0
	a.Json(a.Res)
}
